<template>
  <div class="stat-card">
    <div class="title">{{ title }}</div>
    <div class="value">{{ formatValue(value) }}</div>
  </div>
</template>

<script>
export default {
  name: 'StatCard',
  props: {
    title: String,
    value: Number
  },
  methods: {
    formatValue(val) {
      return val.toLocaleString()
    }
  }
}
</script>

<style lang="scss" scoped>
.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  min-width: 160px;
  text-align: center;
  
  .title {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 5px;
  }
  
  .value {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
  }
}
</style> 